package com.djl.zenithbite.controller.tag;

import com.djl.zenithbite.common.response.BaseResponse;
import com.djl.zenithbite.dto.response.tag.LabelResponse;
import com.djl.zenithbite.service.tag.TagService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;
import java.util.Map;

@RestController
@RequestMapping("/api/tag")
public class TagController {

    @Autowired
    private TagService tagService;

    @GetMapping("/list")
    public BaseResponse<Map<String,List<LabelResponse>>> tagList(){
        return tagService.tagList();
    }

}
